package com.szpx.entity;

import lombok.Data;

import javax.persistence.Table;

/**
 * @author Wangtx
 * @version 1.0.0
 * @title Goods
 * @create 2024/4/6 22:14
 * @description
 */
@Data
@Table(name="goods")
public class Goods {
    private Integer id;
    private String  name;
    private double weight;
    private String startStation;
    private String endStation;
    private double freight;

    public Goods() {
    }

    public Goods(Integer id, String name, double weight, String startStation, String endStation, double freight) {
        this.id = id;
        this.name = name;
        this.weight = weight;
        this.startStation = startStation;
        this.endStation = endStation;
        this.freight = freight;
    }

    @Override
    public String toString() {
        return "Goods{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", weight=" + weight +
                ", startStation='" + startStation + '\'' +
                ", endStation='" + endStation + '\'' +
                ", freight=" + freight +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWeight() {
        return weight;
    }

    public void setWeight(double weight) {
        this.weight = weight;
    }

    public String getStartStation() {
        return startStation;
    }

    public void setStartStation(String startStation) {
        this.startStation = startStation;
    }

    public String getEndStation() {
        return endStation;
    }

    public void setEndStation(String endStation) {
        this.endStation = endStation;
    }

    public double getFreight() {
        return freight;
    }

    public void setFreight(double freight) {
        this.freight = freight;
    }
}
